﻿<%@ Page Title="Messages for you" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Messages.aspx.cs" Inherits="FriendsContactWeb.Messages" Culture="en-US" Debug="True" 
    UICulture="en-US" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">

        .style2
        {
            width: 96px;
        }
        .style3
        {
            width: 73px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Your messages about events
    </h2>
    <p>
        &nbsp;<asp:GridView ID="eventGridView" runat="server" AllowPaging="True" CellPadding="4" 
            ForeColor="#333333" GridLines="None" Width="876px" 
            AutoGenerateColumns="False" AutoGenerateSelectButton="True" 
            onselectedindexchanged="eventGridView_SelectedIndexChanged" 
            onrowdatabound="eventGridView_RowDataBound" 
            AutoGenerateDeleteButton="True" onrowdeleting="eventGridView_RowDeleting">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            <columns>
              <asp:boundfield datafield="Id" headertext="ID" ReadOnly="True"/>
              <asp:boundfield datafield="Sender" headertext="Sender"/>
              <asp:boundfield datafield="Receiver" headertext="Receiver" Visible="False"/>
              <asp:boundfield datafield="EventTitle" headertext="Event title"/>
              <asp:boundfield datafield="IdEvent" headertext="Event ID" ReadOnly="True"/>
              <asp:boundfield datafield="EventMark" headertext="Mark" />
              <asp:boundfield datafield="EventDate" headertext="Event Date" ReadOnly="True"/>
              <asp:boundfield datafield="WasRead" headertext="Was read" ReadOnly="True"/>
            </columns>
        </asp:GridView>
    </p>
    <p>
        &nbsp;<asp:Panel ID="eventDataPanel" runat="server" Height="273px" Visible="False" 
        Width="292px" CssClass="main">
        
        <asp:Label ID="titleLabel" runat="server" Text="Title : "></asp:Label>
        <asp:TextBox ID="titleTextBox" runat="server" Width="223px" MaxLength="50"></asp:TextBox>
        <br />
        <asp:Label ID="authorLabel" runat="server" Text="Author : "></asp:Label>
        <asp:TextBox ID="authorTextBox" runat="server" Width="199px" Enabled="False" 
            ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        <asp:Label ID="descLabel" runat="server" Text="Description : "></asp:Label>
        <asp:TextBox ID="eventDescTextBox" runat="server" Height="86px" 
            TextMode="MultiLine" Width="282px" MaxLength="1024"></asp:TextBox>
        <br />
        <br />
        <table style="width:100%;">
            <tr>
                <td class="style2">
                    <asp:Button ID="btnAccept" runat="server" Text="Accept" Width="98px" 
                        onclick="btnAccept_Click" />
                </td>
                <td class="style3">
                    &nbsp;</td>
                <td dir="rtl">
                    <asp:Button ID="btnReject" runat="server" Text="Reject" Width="99px" 
                        onclick="btnReject_Click" />
                </td>
            </tr>
        </table>
        <br />
        <asp:HyperLink ID="hlinkBackToMessages" runat="server" 
            NavigateUrl="~/Messages.aspx">&lt;&lt;&lt; Back to messages</asp:HyperLink>
        <br />
    </asp:Panel>
    </p>
</asp:Content>
